<?php
/* --------------------------------------------------------------
   gm_pdf_layout.php 2008-08-01 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
	defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td valign="top" align="left" class="main">
			<b><?php echo MENU_TITLE_LAYOUT; ?></b>
		</td>
	</tr>
</table>
<br />
<form id="gm_pdf_form">
	<table border="0" width="100%" cellspacing="0" cellpadding="2">
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_PDF_TOP_MARGIN">																		
					<option selected value="<?php echo gm_get_conf('GM_PDF_TOP_MARGIN'); ?>"><?php echo gm_get_conf('GM_PDF_TOP_MARGIN'); ?> mm</option>
					<option value="10">10 mm</option>
					<option value="15">15 mm</option>
					<option value="20">20 mm</option>
					<option value="25">25 mm</option>
					<option value="30">30 mm</option>
					<option value="35">35 mm</option>
					<option value="40">40 mm</option>
				</select>
			</td>
			<td valign="top" align="left" class="main">
				<?php echo GM_PDF_TITLE_TOP_MARGIN; ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_PDF_RIGHT_MARGIN">																		
					<option selected value="<?php echo gm_get_conf('GM_PDF_RIGHT_MARGIN'); ?>"><?php echo gm_get_conf('GM_PDF_RIGHT_MARGIN'); ?> mm</option>
					<option value="10">10 mm</option>
					<option value="15">15 mm</option>
					<option value="20">20 mm</option>
					<option value="25">25 mm</option>
					<option value="30">30 mm</option>
					<option value="35">35 mm</option>
					<option value="40">40 mm</option>
				</select>
			</td>
			<td valign="top" align="left" class="main">
				<?php echo GM_PDF_TITLE_RIGHT_MARGIN; ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_PDF_BOTTOM_MARGIN">																		
					<option selected value="<?php echo gm_get_conf('GM_PDF_BOTTOM_MARGIN'); ?>"><?php echo gm_get_conf('GM_PDF_BOTTOM_MARGIN'); ?> mm</option>
					<option value="10">10 mm</option>
					<option value="15">15 mm</option>
					<option value="20">20 mm</option>
					<option value="25">25 mm</option>
					<option value="30">30 mm</option>
					<option value="35">35 mm</option>
					<option value="40">40 mm</option>
				</select>
			</td>
			<td valign="top" align="left" class="main">
				<?php echo GM_PDF_TITLE_BOTTOM_MARGIN; ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_PDF_LEFT_MARGIN">																		
					<option selected value="<?php echo gm_get_conf('GM_PDF_LEFT_MARGIN'); ?>"><?php echo gm_get_conf('GM_PDF_LEFT_MARGIN'); ?> mm</option>
					<option value="10">10 mm</option>
					<option value="15">15 mm</option>
					<option value="20">20 mm</option>
					<option value="25">25 mm</option>
					<option value="30">30 mm</option>
					<option value="35">35 mm</option>
					<option value="40">40 mm</option>
				</select>
			</td>
			<td valign="top" align="left" class="main">
				<?php echo GM_PDF_TITLE_LEFT_MARGIN; ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_PDF_HEADING_MARGIN_TOP">																		
					<option selected value="<?php echo gm_get_conf('GM_PDF_HEADING_MARGIN_TOP'); ?>"><?php echo gm_get_conf('GM_PDF_HEADING_MARGIN_TOP'); ?> mm</option>
					<option value="0">0 mm</option>
					<option value="5">5 mm</option>
					<option value="10">10 mm</option>
					<option value="15">15 mm</option>
					<option value="20">20 mm</option>
					<option value="25">25 mm</option>
					<option value="30">30 mm</option>
					<option value="35">35 mm</option>
					<option value="40">40 mm</option>
				</select>
			</td>
			<td valign="top" align="left" class="main">
				<?php echo GM_PDF_TITLE_HEADING_MARGIN_TOP; ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_PDF_HEADING_MARGIN_BOTTOM">																		
					<option selected value="<?php echo gm_get_conf('GM_PDF_HEADING_MARGIN_BOTTOM'); ?>"><?php echo gm_get_conf('GM_PDF_HEADING_MARGIN_BOTTOM'); ?> mm</option>
					<option value="0">0 mm</option>
					<option value="5">5 mm</option>
					<option value="10">10 mm</option>
					<option value="15">15 mm</option>
					<option value="20">20 mm</option>
					<option value="25">25 mm</option>
					<option value="30">30 mm</option>
					<option value="35">35 mm</option>
					<option value="40">40 mm</option>
				</select>
			</td>
			<td valign="top" align="left" class="main">
				<?php echo GM_PDF_TITLE_HEADING_MARGIN_BOTTOM; ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_PDF_ORDER_INFO_MARGIN_TOP">																		
					<option selected value="<?php echo gm_get_conf('GM_PDF_ORDER_INFO_MARGIN_TOP'); ?>"><?php echo gm_get_conf('GM_PDF_ORDER_INFO_MARGIN_TOP'); ?> mm</option>
					<option value="0">0 mm</option>
					<option value="5">5 mm</option>
					<option value="10">10 mm</option>
					<option value="15">15 mm</option>
					<option value="20">20 mm</option>
					<option value="25">25 mm</option>
					<option value="30">30 mm</option>
					<option value="35">35 mm</option>
					<option value="40">40 mm</option>
				</select>
			</td>
			<td valign="top" align="left" class="main">
				<?php echo GM_PDF_TITLE_ORDER_INFO_MARGIN_TOP; ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_PDF_CELL_HEIGHT">																		
					<option selected value="<?php echo gm_get_conf('GM_PDF_CELL_HEIGHT'); ?>"><?php echo gm_get_conf('GM_PDF_CELL_HEIGHT'); ?> mm</option>
					<option value="3">3 mm</option>
					<option value="4">4 mm</option>
					<option value="5">5 mm</option>
					<option value="6">6 mm</option>
					<option value="7">7 mm</option>
					<option value="8">8 mm</option>
					<option value="9">9 mm</option>
				</select>
			</td>
			<td valign="top" align="left" class="main">
				<?php echo GM_PDF_TITLE_CELL_HEIGHT; ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<input onClick="gm_fadeout_boxes('gm_status');" type="text" value="<?php echo gm_get_conf('GM_PDF_CUSTOMER_ADR_POS'); ?>" style="width:150px;" id="GM_PDF_CUSTOMER_ADR_POS">
			</td>
			<td valign="top" align="left" class="main">
				<?php echo GM_PDF_TITLE_CUSTOMER_ADR_POS; ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_PDF_DISPLAY_ZOOM">																		
					<option selected value="<?php echo gm_get_conf('GM_PDF_DISPLAY_ZOOM'); ?>"><?php echo constant('SELECT_DISPLAY_ZOOM_' . strtoupper(gm_get_conf('GM_PDF_DISPLAY_ZOOM'))); ?></option>
					
					<?php	if(gm_get_conf('GM_PDF_DISPLAY_ZOOM') != 'fullpage') { ?>
					<option value="fullpage"><?php echo SELECT_DISPLAY_ZOOM_FULLPAGE; ?></option>
					<?php } 
							if(gm_get_conf('GM_PDF_DISPLAY_ZOOM') != 'fullwidth') { 
					?>
					<option value="fullwidth"><?php echo SELECT_DISPLAY_ZOOM_FULLWIDTH; ?></option>
					<?php } 
							if(gm_get_conf('GM_PDF_DISPLAY_ZOOM') != 'real') { 
					?>
					<option value="real"><?php echo SELECT_DISPLAY_ZOOM_REAL; ?></option>
					<?php } 
							if(gm_get_conf('GM_PDF_DISPLAY_ZOOM') != 'default') { 
					?>
					<option value="default"><?php echo SELECT_DISPLAY_ZOOM_DEFAULT; ?></option>
					<?php } ?>
				</select>
			</td>
			<td valign="top" align="left" class="main">
				<?php echo GM_PDF_TITLE_DISPLAY_ZOOM; ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_PDF_DISPLAY_LAYOUT">																		
					<option selected value="<?php echo gm_get_conf('GM_PDF_DISPLAY_LAYOUT'); ?>"><?php echo constant('SELECT_DISPLAY_LAYOUT_' . strtoupper(gm_get_conf('GM_PDF_DISPLAY_LAYOUT'))); ?></option>
					
					<?php	if(gm_get_conf('GM_PDF_DISPLAY_LAYOUT') != 'single') { ?>
					<option value="single"><?php echo SELECT_DISPLAY_LAYOUT_SINGLE;?></option>
					<?php } 
							if(gm_get_conf('GM_PDF_DISPLAY_LAYOUT') != 'continuous') { 
					?>
					<option value="continuous"><?php echo SELECT_DISPLAY_LAYOUT_CONTINUOUS;?></option>
					<?php } 
							if(gm_get_conf('GM_PDF_DISPLAY_LAYOUT') != 'two') { 
					?>
					<option value="two"><?php echo SELECT_DISPLAY_LAYOUT_TWO; ?></option>
					<?php } 
							if(gm_get_conf('GM_PDF_DISPLAY_LAYOUT') != 'default') { 
					?>
					<option value="default"><?php echo SELECT_DISPLAY_LAYOUT_DEFAULT; ?></option>
					<?php } ?>
				</select>
			</td>
			<td valign="top" align="left" class="main">
				<?php echo GM_PDF_TITLE_DISPLAY_LAYOUT; ?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_PDF_DISPLAY_OUTPUT">																		
					<option selected value="<?php echo gm_get_conf('GM_PDF_DISPLAY_OUTPUT'); ?>"><?php echo constant('SELECT_DISPLAY_OUTPUT_' . strtoupper(gm_get_conf('GM_PDF_DISPLAY_OUTPUT'))); ?></option>
					
					<?php	if(gm_get_conf('GM_PDF_DISPLAY_OUTPUT') != 'I') { ?>
					<option value="I"><?php echo SELECT_DISPLAY_OUTPUT_I ;?></option>
					<?php } 
							if(gm_get_conf('GM_PDF_DISPLAY_OUTPUT') != 'D') { 
					?>
					<option value="D"><?php echo SELECT_DISPLAY_OUTPUT_D; ?></option>
					<?php } ?>
				</select>
			</td>
			<td valign="top" align="left" class="main">
				<?php echo SELECT_DISPLAY_OUTPUT; ?>
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main" colspan="2">		
				&nbsp;
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main">				
				<input class="button" type="button" value="<?php echo BUTTON_SAVE;?>" onClick="gm_hide_boxes('gm_color_box');gm_fadeout_boxes('gm_status');gm_update_boxes('<?php echo xtc_href_link('gm_pdf_action.php', 'action=gm_pdf_update'); ?>', 'gm_status')">																									 
			</td>
			<td valign="middle" align="left" class="main">				
				<span id="gm_status" style="height:20px"></span>																									 
			</td>
		</tr>
	</table>
</form>